import BasicLayout from '@/layouts/basic-layout';

const meta = {
    auth: true
};

const pre = 'device-';

export default {
    path: '/device',
    name: 'device',
    redirect: {
        name: `${pre}index`
    },
    meta,
    component: BasicLayout,
    children: [
        {
            path: 'index',
            name: `${pre}index`,
            meta: {
                ...meta,
                title: '设备管理',
                closable: false
            },
            component: () => import('@/pages/device/index')
        },
        {
            path: 'railList',
            name: `${pre}railList`,
            meta: {
                ...meta,
                title: '护栏管理',
                closable: false
            },
            component: () => import('@/pages/device/railList')
        },
        {
            path: 'deviceList',
            name: `${pre}deviceList`,
            meta: {
                ...meta,
                title: '设备管理',
                closable: false
            },
            component: () => import('@/pages/device/deviceList')
        },
        {
            path: 'deviceAlarmList',
            name: `${pre}deviceAlarmList`,
            meta: {
                ...meta,
                title: '火警管理',
                closable: false
            },
            component: () => import('@/pages/device/deviceAlarmList')
        }
    ]
};
